package com.igoal.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.igoal.entity.InfoQueueEntry;

@Repository("infoQueueDAO")
public class InfoQueueDAOImpl extends GenericDaoHibernate<InfoQueueEntry, Long> implements InfoQueueDAO {

	public InfoQueueDAOImpl() {
		super(InfoQueueEntry.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<InfoQueueEntry> getAllDisticntRandom(){
		return getHibernateTemplate().find("Select distinct(entry) From InfoQueueEntry entry order by RAND()");
	}
}
